// vite.config.ts
import { defineConfig } from "file:///D:/%E5%B7%A5%E4%BD%9C/%E5%AD%A6%E4%B9%A0/vue3/zl-admin-ts/node_modules/vite/dist/node/index.js";
import vue from "file:///D:/%E5%B7%A5%E4%BD%9C/%E5%AD%A6%E4%B9%A0/vue3/zl-admin-ts/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import AutoImport from "file:///D:/%E5%B7%A5%E4%BD%9C/%E5%AD%A6%E4%B9%A0/vue3/zl-admin-ts/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///D:/%E5%B7%A5%E4%BD%9C/%E5%AD%A6%E4%B9%A0/vue3/zl-admin-ts/node_modules/unplugin-vue-components/dist/vite.js";
import path from "path";
var vite_config_default = defineConfig({
  resolve: {
    //使用@路径
    alias: {
      "@": path.resolve("./src")
    }
  },
  css: {
    // CSS 预处理器
    preprocessorOptions: {
      // 定义全局 SCSS 变量
      scss: {
        additionalData: `@use "./src/styles/public.scss" as *;`
      }
    }
  },
  server: {
    // 允许IP访问
    host: "0.0.0.0",
    // 应用端口 (默认:3000)
    port: 4444,
    // 运行是否自动打开浏览器
    open: false
  },
  plugins: [
    vue(),
    AutoImport({
      imports: ["vue", "pinia", "vue-router"]
    }),
    Components({})
  ],
  // 预加载项目必需的组件
  optimizeDeps: {
    include: [
      "vue",
      "vue-router"
    ]
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFxcdTVERTVcdTRGNUNcXFxcXHU1QjY2XHU0RTYwXFxcXHZ1ZTNcXFxcemwtYWRtaW4tdHNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIkQ6XFxcXFx1NURFNVx1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